import request from '@/router/axios';
import qs from 'qs';
// 获取数据列表
export const getListOfSearch = (data) => request({
    url: '/projectList/v1/pageQuery',
    method: 'post',
    data: qs.stringify(data),
})
// 根据id查询
export const getDataById = (data) => request({
    url: '/projectList/v1/findById',
    method: 'post',
    data: qs.stringify(data),
})
// 添加
export const insertEntity = (data) => request({
    url: '/projectList/v1/insert',
    method: 'post',
    data: qs.stringify(data),
})
// 修改
export const updateEntity = (data) => request({
    url: '/projectList/v1/update',
    method: 'post',
    data: qs.stringify(data),
})
// 删除
export const deleteEntity = (data) => request({
    url: '/projectList/v1/getById',
    method: 'post',
    data: qs.stringify(data),
})